package com.wyix.entity;


/**
 * @author wangdx
 * @date 2025/8/1
 * @description 用户类
 */
public class User {
    private String username;
    private String password;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public boolean login(String inputUsername, String inputPassword) {
        // 使用 boolean 类型进行逻辑判断
        return this.username.equals(inputUsername) && this.password.equals(inputPassword);
    }
}
